package com.molichuxing.gateway.bff.order.services;

import com.molichuxing.framework.dto.Paged;
import com.molichuxing.framework.exception.BizException;
import com.molichuxing.framework.service.RootService;
import com.molichuxing.gateway.bff.order.entity.request.create.OrderLawsuitCreateVo;
import com.molichuxing.gateway.bff.order.entity.request.modify.OrderLawsuitModifyVo;
import com.molichuxing.gateway.bff.order.entity.response.OrderLawsuitVo;

import java.util.Map;

/**
 * 订单法务诉讼bff
 *
 * @Author zoumingyu
 * @Date 2020年07月20日
 */
public interface OrderLawsuitBffService extends RootService {

    /**
     * 查询法务诉讼列表
     *
     * @param selectParams 查询参数
     * @param pageNum      第几页
     * @param pageSize     每页条数
     * @return Paged
     */
    Paged<OrderLawsuitVo> getLawsuitList(Map<String, Object> selectParams,
                                         Integer pageNum, Integer pageSize) throws Exception;

    /**
     * 法务诉讼
     *
     * @param createVo 新增参数
     * @return Boolean
     */
    Boolean createLawsuit(OrderLawsuitCreateVo createVo);

    /**
     * 完成诉讼
     *
     * @param modifyVo 修改参数
     * @return Boolean
     */
    Boolean modifyLawsuitComplete(OrderLawsuitModifyVo modifyVo) throws BizException;
}
